<script>
import { getToken } from '@/util/storage';
import { loginStatus } from '@/api/account.js';

export default {
	onLaunch: function() {
		console.log('App Launch');
		setTimeout(() => {
			// this.getUserInfo();
		}, 3000)
	},
	onShow: function() {
		console.log('App Show');
	},
	onHide: function() {
		console.log('App Hide');
	},

	methods: {
		getUserInfo() {
			this.$store.dispatch('saveToken');
			loginStatus().then(res => {
				this.$store.dispatch('saveLogin', res);
			});
		}
	}
};
</script>

<style lang="scss">
/*每个页面公共css */
@import './common/css/common.scss';
@import './common/css/iconfont.css';
</style>
